Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fuelup completions #293

Merged
merged 6 commits into from
Nov 29, 2022

Conversation

0xYYY
Copy link
Contributor

@0xYYY 0xYYY commented Nov 28, 2022

Closes #291.

@0xYYY
Copy link
Contributor Author

0xYYY commented Nov 28, 2022

some working screenshots:
Screenshot 2022-11-28 at 23 03 17
Screenshot 2022-11-28 at 23 03 31

Copy link
Contributor

@eightfilms eightfilms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! Looks awesome - just a few nits :)

src/fuelup_cli.rs Outdated Show resolved Hide resolved
@@ -137,7 +137,7 @@ main() {
ignore rmdir "$_dir"

printf '\n'
printf '%s\n' "fuelup ${_fuelup_version} has been installed in $FUELUP_DIR/bin. To fetch the latest toolchain containing the forc and fuel-core binaries, run 'fuelup toolchain install latest'." 1>&2
printf '%s\n' "fuelup ${_fuelup_version} has been installed in $FUELUP_DIR/bin. To fetch the latest toolchain containing the forc and fuel-core binaries, run 'fuelup toolchain install latest'. To generate completions for your shell, run 'fuelup completions --shell=SHELL'." 1>&2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To generate completions for your shell, run 'fuelup completions --shell=SHELL

It would be great if this instruction, along with a short description, is also included within the fuelup book, perhaps under the Configuration chapter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't realise that the book is also in this repo
will add some instructions

@0xYYY
Copy link
Contributor Author

0xYYY commented Nov 29, 2022

hi @bingcicle, thanks for your suggestions, i've updated accordingly

(book content for fuelup completions is adapted from https://fuellabs.github.io/sway/master/forc/commands/forc_completions.html)

@0xYYY 0xYYY requested a review from eightfilms November 29, 2022 12:19
Copy link
Contributor

@eightfilms eightfilms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for your contribution!

@eightfilms eightfilms merged commit 0771207 into FuelLabs:master Nov 29, 2022
@0xYYY 0xYYY deleted the 0xyyy/feat-fuelup-completions branch November 29, 2022 13:00
@eightfilms eightfilms mentioned this pull request Nov 29, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add auto completions for bash (and others)
2 participants